package com.tvunetworks.center.device.constant;
/**
 * @author lebron
 */
public interface DeviceConstant {
    /**
     * USER_BEHAVIOR_TIMELOCK_REMARK
     */
    String USER_BEHAVIOR_TIMELOCK_REMARK = "synchronized";

    /**
     * MemcacheKey
     */
    interface MemcacheKey {
        String STATUS_FOR_GRIDWITCH = "status_for_gridwitch_";
    }

    /**
     * ReceiverCommandResult
     */
    interface ReceiverCommandResult {
        /**
         * StartLive
         */
        interface StartLive {
            String UNKNOWN = "2147483648";
            String PEERNOTFOUND  = "2147483649";
            String PEETINLIVEWITHOTHER  = "2147483650";
            String PEERINCORRECTSTATUS  = "2147483651";
        }

        /**
         * StopLive
         */
        interface StopLive {
            String UNKNOWN = "2147483648";
            String PEERNOTFOUND  = "2147483649";
            String GIVENPEERNOTSELECTED  = "2147483650";
        }
    }

    /**
     * TimeLockEventType
     */
    interface TimeLockEventType {
        String START_SYNC = "startSync";
        String STOP_SYNC = "stopSync";
        String CANCEL_SYN = "cancelSync";
        String REPORT_SYNC = "reportSync";
    }

    /**
     * TimeLockMsgConstant
     */
    interface TimeLockMsgConstant {
        Integer MAIN_SERVER = 1;
        Integer SLAVE_SERVER = 0;
        Integer EXCUTING = 0;
        Integer SUCCESS = 1;
        Integer FAILED = -1;
        Integer SEND_MESSAGE = 0;
        Integer RECEIVE_MSG = 1;
    }

    /**
     * TimeLockConstant
     */
    interface TimeLockConstant {
        int DEFAULT_NTP_PORT = 123;
        int MSGPIPE_TYPE =  603;
    }

    /**
     * DeviceExtra
     */
    interface DeviceExtra {
        String MANUAL = "manual";
    }

    /**
     * ShareRecord
     */
    interface ShareRecord {
        // 开启的推流记录
        int START = 1;
        // 关闭的推流记录
        int STOP = 2;
        // StopLive 关闭的推流记录，下次开启直播的时候需要自动推流
        int NEED_SHARE = 3;
        // 非正常关闭的推流记录
        int ISSUE = 4;
        //固定地址开启推流
        int FIXED_ADDRESS_START = 5;
        //固定地址关闭推流
        int FIXED_ADDRESS_STOP = 6;
        //固定地址关闭 非正常关闭的推流记录
        int FIXED_ADDRESS_ISSUE = 7;
        // StopLive 关闭的推流记录，开启直播的时候已经自动推流
        int NEED_SHARE_DONE = 8;
        // StopLive 关闭的推流记录，开启直播的时候准备自动推流，但是不属于当前开启直播的账号
        // 开启直播的准备自动推流的时候，只会去推当前帐号推流的地址，其他账号准备推流的地址会被置为
        int NEED_SHARE_FAILED_NOT_BELONG_USER = 9;
    }
}
